<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
		<title>{$web.title|default=""}</title>
        <description>{$web.description|default=""}</description>
        <script src="/assets/jquery.js"></script>
	</head>
        <style>
            *,html,body{margin:0;padding:0;}
            .assects{margin:0 auto; max-width:720px;}
            .assects img{width:100%;}
    </style>
    <body>
        <section class="assects">
            <img src="{$web.image_url}" id="image">
        </section>
    </body>
    <script>
        $(function(){
            {eq name="web.auto_click" value="1"}
            $('#image').on('click',function(){
                window.location.href = "{$web.url}";
            })
            {/eq}
            {eq name="web.auto_time" value="999"}
            {else/}
            setTimeout(function(){
                window.location.href = "{$web.url}";
            },{$web.auto_time}*1000);
            {/eq}
        })
    </script>
</html>

